package com.wonders.hisdoctor.station.project.base.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wonders.hisdoctor.station.project.base.domain.OutpTreatRec;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>检查治疗医嘱明细记录：病人就诊过程中产生的检查治疗多条。 dao </p>
 * <p>db_table: OUTP_TREAT_REC</p>
 *
 * @author tong_aj
 * @date 2021/01/19
 */
@Mapper
@Repository
public interface OutpTreatRecMapper extends BaseMapper<OutpTreatRec> {

    /**
     * 批量新增
     *
     * @param outpTreatRecList
     * @return
     */
    int insertBatch(List<OutpTreatRec> outpTreatRecList);

    /**
     * 获得当前serialNo下, 最大的ITEM_NO
     * @param serialNo
     * @return
     */
    Integer getMaxItemNo(String serialNo);

    /**
     * 批量删除
     * @param outpTreatRecs
     * @return
     */
    int deleteBatch(List<OutpTreatRec> outpTreatRecs);
}
